package com.uncp.comisiondeadmision.service;

import java.util.List;

import com.uncp.comisiondeadmision.dao.DAOFactory;
import com.uncp.comisiondeadmision.dao.IDPostulante;
import com.uncp.comisiondeadmision.util.entity.EPostulante;


public class SPostulante implements ISPostulante {

	
	private DAOFactory daoFactory = null;
	private IDPostulante postulanteDAO;
	
	public SPostulante(int i) {
		daoFactory = DAOFactory.getDAOFactory(i);
		this.postulanteDAO = daoFactory.getPostulante();
	}
	

	public List<EPostulante> listarPostuSoliciPendi() throws Exception {
		return postulanteDAO.listarPostuSoliciPendi();
	}


	public EPostulante buscarPostulantePorPK(Integer codigo) throws Exception {
		return postulanteDAO.buscarPostulantePorPK(codigo);
	}


	public void actualizarEstado(EPostulante entidad) throws Exception {
			   postulanteDAO.actualizarEstado(entidad);
	}






}
